Skip to content

[Week6] MinwooJe#22

Open
MinwooJe wants to merge 1 commit intomainfrom
Week6_MinwooJe
Open

[Week6] MinwooJe#22
MinwooJe wants to merge 1 commit intomainfrom
Week6_MinwooJe

Conversation

@MinwooJe
Copy link
Member

🔗 문제 링크

프로그래머스 Lv2. - 더 맵게

✔️ 소요된 시간

20분

✨ 수도 코드

1. scoville 리스트를 힙으로 변환  

2. while (scoville 힙의 길이가 2 이상):
    2.1 가장 작은 두 음식 pop
    2.2 if 가장 작은 음식의 스코빌 지수 >= K: return result
    2.3 두 음식을 섞고 push
    2.4 result += 1
3. 최종 확인
    if heap에서 pop을 한 음식 >= K: return result
    else: return result

📚 새롭게 알게된 내용

@MinwooJe MinwooJe added ✏️ 문제 더 풀거에요 Something isn't working 🥳 리뷰 해주세요 Improvements or additions to documentation labels Jun 18, 2025
@snughnu snughnu removed their request for review February 12, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✏️ 문제 더 풀거에요 Something isn't working 🥳 리뷰 해주세요 Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant